﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace Q.Framework.Extension
{
    public static class TypeExtension
    {
        public static object GetValue(this PropertyInfo prop, object obj)
        {
            return prop.GetValue(obj, null);
        }

        public static T GetValue<T>(this PropertyInfo prop, object obj)
        {
            return (T)GetValue(prop, obj);
        }
    }
}
